import request from '@/utils/request'

// system/statistics/hospital  专委会统计
export function statisticsAll(query) {
  return request({
    url: '/system/statistics/hospital',
    method: 'get',
    params: query
  })
}
///dev-api/system/statistics/hospitalByTime //获取一段时间里某个医院的相关统计数据
export function statisticsHospitalByTime(query) {
  return request({
    url: '/system/statistics/hospitalByTime',
    method: 'get',
    params: query
  })
}
///dev-api/system/statistics/treatmentByTime   获取一段时间里某个医院的治疗相关统计数据

export function statisticsTreatmentByTime(query) {
  return request({
    url: '/system/statistics/treatmentByTime',
    method: 'get',
    params: query
  })
}
// 开单统计 /system/statistics/doctor/treatmentByTime
export function statisticsDoctorTreatmentByTime(query) {
  return request({
    url: '/system/statistics/doctor/treatmentByTime',
    method: 'get',
    params: query
  })
}
///dev-api/system/statistics/userByTime  获取一段时间里某个医院的用户相关统计数据

export function statisticsTreatmentuserByTime(query) {
  return request({
    url: '/system/statistics/userByTime',
    method: 'get',
    params: query
  })
}
////system/statistics/diagnosis/specialized/diseases  获取一段时间里某个医院的诊断专病分类统计数据
export function statisticsDiseases(query) {
  return request({
    url: '/system/statistics/diagnosis/specialized/diseases',
    method: 'get',
    params: query
  })
}


///system/statistics/getAllHospital  获取所有医院相关信息

export function statisticsgetAllHospital(query) {
  return request({
    url: '/system/statistics/getAllHospital',
    method: 'get',
    params: query
  })
}
///system/statistics/getAllUser  获取所有用户相关信息
export function statisticsgetAllUser(query) {
  return request({
    url: '/system/statistics/getAllUser',
    method: 'get',
    params: query
  })
}
////system/statistics/getAllDoctor  获取所有医生相关信息
export function statisticsgetAllDoctor(query) {
  return request({
    url: '/system/statistics/getAllDoctor',
    method: 'get',
    params: query
  })
}

// /system/statistics/specialized/disease/statistics/list  专病统计列表
export function statisticsDiseasesList(data) {
  return request({
    url: '/system/statistics/specialized/disease/statistics/list',
    method: 'post',
    data: data
  })
}
////system/statistics/patient/valueAnalysis  顾客价值分析
export function statisticsgetValueAnalysis(query) {
  return request({
    url: '/system/statistics/patient/valueAnalysis',
    method: 'get',
    params: query
  })
}
///system/statistics/diseases/distribution 专病分布
export function statisticsDistribution(data) {
  return request({
    url: '/system/statistics/diseases/distribution',
    method: 'post',
    data: data
  })
}

///system/statistics/specialized/disease/plan/statistics/list 专病下治疗项目统计列表
export function statisticsDistributionPlan(data) {
  return request({
    url: '/system/statistics/specialized/disease/plan/statistics/list',
    method: 'post',
    data: data
  })
}

///system/statistics/dataSource/tj    登记来源统计

export function statisticsDdataSource(data) {
  return request({
    url: '/system/statistics/dataSource/tj',
    method: 'post',
    data: data
  })
}